#include "prop.h"
#include "LessonX.h"
prop::prop(const char* name,const char* cloneName):victimEntity(name,cloneName)
{

}

prop::~prop(){}
void prop::delete_self()
{
    victimEntity::delete_self();
    g_GameMain.deleteProperty(GetName());
}
void prop::minusLife(int val){
    victimEntity::minusLife(val);
    if(GetLife()<=0)
        delete_self();
}
